/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package EntityState;

import java.io.Serializable;
import java.util.List;

/**
 *
 * @author James
 */
public class ReservationState implements Serializable {
    private long   id;
    private long   startTime;
    private long   endTime;
    private long   createdDate;
    private String customerName;
    private String countryCode;
    private String phone;
    private int    numOfPeople;
    private int    amountPaid; // the total amount that the customer paid when he finished eating at a restaurant or staying at a hotel, etc...
    private int    status;
    private CustomerState       theCustomer;
    private ReservableUnitState reservedUnit;
    private List<VoucherState>  listOfVouchers;

    public ReservationState(long id, long startTime, long endTime, long createdDate, int numOfPeople, int amountPaid, ReservableUnitState reservedUnit) {
        this.id           = id;
        this.startTime    = startTime;
        this.endTime      = endTime;
        this.createdDate  = createdDate;
        this.numOfPeople  = numOfPeople;
        this.amountPaid   = amountPaid;
        this.reservedUnit = reservedUnit;
    }

    public ReservationState(long id, long startTime, long endTime, long createdDate, String customerName, String countryCode, String phone, int numOfPeople, ReservableUnitState reservedUnit, List<VoucherState> listOfVouchers) {
        this.id             = id;
        this.startTime      = startTime;
        this.endTime        = endTime;
        this.createdDate    = createdDate;
        this.customerName   = customerName;
        this.countryCode    = countryCode;
        this.phone          = phone;
        this.numOfPeople    = numOfPeople;
        this.reservedUnit   = reservedUnit;
        this.listOfVouchers = listOfVouchers;
    }
    
    //Getters and Setters
    public int getAmountPaid() {
        return amountPaid;
    }

    public void setAmountPaid(int amountPaid) {
        this.amountPaid = amountPaid;
    }

    public CustomerState getCustomer() {
        return theCustomer;
    }

    public void setCustomer(CustomerState theCustomer) {
        this.theCustomer = theCustomer;
    }

    public String getCountryCode() {
        return countryCode;
    }

    public void setCountryCode(String countryCode) {
        this.countryCode = countryCode;
    }

    public long getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(long createdDate) {
        this.createdDate = createdDate;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public List<VoucherState> getListOfVouchers() {
        return listOfVouchers;
    }

    public void setListOfVouchers(List<VoucherState> listOfVouchers) {
        this.listOfVouchers = listOfVouchers;
    }

    public int getNumOfPeople() {
        return numOfPeople;
    }

    public void setNumOfPeople(int numOfPeople) {
        this.numOfPeople = numOfPeople;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public ReservableUnitState getReservedUnit() {
        return reservedUnit;
    }

    public void setReservedUnit(ReservableUnitState reservedUnit) {
        this.reservedUnit = reservedUnit;
    }

    public long getStartTime() {
        return startTime;
    }

    public void setStartTime(long startTime) {
        this.startTime = startTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
